package com.itbaizhan;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Jdbc {
    public static void main(String[] args) throws ClassNotFoundException, SQLException {
        Class.forName("com.mysql.cj.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/itbz";
        String user = "root";
        String password = "311821";
       Connection conn =  DriverManager.getConnection(url,user,password);
        System.out.println(conn);


    }
}
